﻿using System;
using System.ComponentModel.DataAnnotations;
namespace Manager.Model.Admin
{
    /// <summary>
    /// M_About:实体类(属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Serializable]
    public partial class M_About
    {
        public M_About()
        { }
        #region Model
        private int _aboutid;
        private string _abouttitle;
        private string _aboutcontent;
        private string _aboutauthor;
        private string _aboutsource;
        private int? _abouttypeid;
        private DateTime? _aboutdate = DateTime.Now;
        private bool _isvalid = true;
        private bool _istop = false;
        private string _aboutimage;
        /// <summary>
        /// 
        /// </summary>
        [Display(Name="资料编号")]
        public int AboutID
        {
            set { _aboutid = value; }
            get { return _aboutid; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Display(Name="资料标题")]
        [Required]
        [StringLength(100)]
        public string AboutTitle
        {
            set { _abouttitle = value; }
            get { return _abouttitle; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "资料内容")]
        public string AboutContent
        {
            set { _aboutcontent = value; }
            get { return _aboutcontent; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "资料作者")]
        public string AboutAuthor
        {
            set { _aboutauthor = value; }
            get { return _aboutauthor; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "资料来源")]
        public string AboutSource
        {
            set { _aboutsource = value; }
            get { return _aboutsource; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "资料类别")]
        public int? AboutTypeID
        {
            set { _abouttypeid = value; }
            get { return _abouttypeid; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "发布时间")]
        public DateTime? AboutDate
        {
            set { _aboutdate = value; }
            get { return _aboutdate; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "是否有效")]
        public bool IsValid
        {
            set { _isvalid = value; }
            get { return _isvalid; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "首页显示")]
        public bool IsTop
        {
            set { _istop = value; }
            get { return _istop; }
        }

        /// <summary>
        /// 
        /// </summary>
        [Display(Name="新闻图片")]
        public string AboutImage
        {
            set { _aboutimage = value; }
            get { return _aboutimage; }
        }
        #endregion Model

    }
}

